how to find disjoint sets

visit shbcf.ru